-- GENERATED SPELL FOR [Tick] --


function spell0_8198(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(21073,pUnit)
pUnit:RegisterEvent('Sorts_8198', 1500, 1)
end

function spell1_8198(pUnit, Event) --@Sand Breath,n/a--
pUnit:FullCastSpellOnTarget(20717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8198', 12000, 1)
end

function Sorts_8198(pUnit, Event)
local choix_sorts_8198 = math.random(0, 1)
if choix_sorts_8198 == 0 then
pUnit:RegisterEvent('spell0_8198', 1, 1)
end
if choix_sorts_8198 == 1 then
pUnit:RegisterEvent('spell1_8198', 1, 1)
end
end

function mob8198_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8198', math.random(1500, 3000), 1)
end

function mob8198_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8198_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8198_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8198, 1, 'mob8198_Action')
RegisterUnitEvent(8198, 2, 'mob8198_Leave')
RegisterUnitEvent(8198, 3, 'mob8198_Kill')
RegisterUnitEvent(8198, 4, 'mob8198_Die')
